package com.molin.threadTest.threadDemo2;

public class Demo {
    public static void main(String[] args) {
        MyRunnable myRunnable1 = new MyRunnable();
        Thread thread1 = new Thread(myRunnable1);

        MyRunnable myRunnable2 = new MyRunnable();
        Thread thread2 = new Thread(myRunnable2);
        thread2.start();
        thread1.start();
    }
}
